# -*- coding: utf-8 -*-

<%namespace name="student_comps" file="/students/components.mako"/>


## Feedbacks components

<%def name="synopsis(feedback)">
% if feedback:
  <div class="feedback_synopsis">
    <div class="feedback_synopsis_title">
    <a href="${h.url_for('feedback', id=feedback.id)}">
      Feedback #${feedback.id|h}</a> on 
    <a href="${feedback.url}">${feedback.url}</a>.
    </div>
    <div class="feedback_synopsis_info">
      Posted by ${student_comps.link_to(feedback.user)} on 
      ${feedback.date.strftime("%d/%m/%Y at %H:%M")}.
    </div>
    <div class="feedback_synopsis_comment">
      ${feedback.comment}
    </div>
  </div>
% endif
</%def>